﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class UserControls_OnlineQQ : UCBase
{
    public string SiteScript = "";      //站点网络电话一
    public string SiteService = "";     //站点网络电话二
    public string QQ1 = "";
    public string QQ2 = "";
    public string Tel = "";

    public UserControls_OnlineQQ()
    {
        Name = "在线客服";

        //swpas = new ShoveWebPartAttribute[5];

        //swpas[0] = new ShoveWebPartAttribute_Int("行数", "1,100", 6, "显示销售排行的条数");        
        //swpas[1] = new ShoveWebPartAttribute_Int("控件宽度", "", 203, "控件宽度");
        //swpas[2] = new ShoveWebPartAttribute_Int("控件高度", "", 300, "控件高度");

        //swpas[3] = new ShoveWebPartAttribute_Image("产品图片宽度", "1,500", 91, "产品图片宽度");
        //swpas[4] = new ShoveWebPartAttribute_Image("产品图片高度", "1,500", 27, "产品图片高度");

    }

    private void InitlayOut()
    {
        //tabctr.Width = swpAttributes[1];
        //tabctr.Height = swpAttributes[2];  
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        InitlayOut();
        LoadScript();        
    }

    /// <summary>
    /// 嵌入网络电话代码
    /// </summary>
    private void LoadScript()
    {
        DataTable dt = new DAL.Tables.tbl_Shop().Open("", "[ID]=" + _Site.ID, "");

        if (dt != null && dt.Rows.Count > 0)
        {
            SiteScript = dt.Rows[0]["SiteScript"].ToString();
            SiteService = dt.Rows[0]["SiteService"].ToString();
            QQ1 = dt.Rows[0]["QQ1"].ToString();
            QQ2 = dt.Rows[0]["QQ2"].ToString();
            Tel = dt.Rows[0]["Mobile"].ToString();
        }
    }

}
